﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TaskSchedul;

namespace Test
{
    class Program
    {
        static void Main(string[] args)
        {
          

            //JobModel obj = new JobModel();

            //obj.Name = "name12312312";
            //obj.Group = "group1231231";
            //obj.TriggerName = "TriggerName";
            //obj.TriggerGroup = "TriggerGroup";

            //service.RunJob(obj, 1);

            //int state = service.GetJobState(obj);

            //service.PauseJob("myJob1,group1");
            //MsgModel model = new MsgModel()
            //{
            //    TaskID = "bbaa4b91-e46a-4bc1-9f04-23e2cbbfe703",
            //    Operation = 1  //1 运行  2 删除 3 查询更新状态
            //};
            //RabbitMqHelper.SendMessage(ToolHelper.GetJson(model));

            Main service = new TaskSchedul.Main();
            service.Init();
            RabbitMqHelper.ReceiveMessages();

        }


    }
}
